import React,{Component} from 'react';
import { View , Text } from 'react-native';
import IconMap from '../../res/fonts/icon'
    const Index = (props) =>  <Text style={{ fontFamily: "iconfont", ...props.style }} onPress={props.onPress} >{IconMap[props.name]}</Text>
export default Index;